-- GENERATED SPELL FOR [Blackhand Incarcerator] --


function spell0_10316(pUnit, Event) --@Encage,n/a--
pUnit:FullCastSpellOnTarget(16045,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10316', 30292, 1)
end

function spell1_10316(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10316', 625, 1)
end

function Sorts_10316(pUnit, Event)
local choix_sorts_10316 = math.random(0, 1)
if choix_sorts_10316 == 0 then
pUnit:RegisterEvent('spell0_10316', 1, 1)
end
if choix_sorts_10316 == 1 then
pUnit:RegisterEvent('spell1_10316', 1, 1)
end
end

function mob10316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10316', math.random(1500, 3000), 1)
end

function mob10316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10316, 1, 'mob10316_Action')
RegisterUnitEvent(10316, 2, 'mob10316_Leave')
RegisterUnitEvent(10316, 3, 'mob10316_Kill')
RegisterUnitEvent(10316, 4, 'mob10316_Die')
